package com.zhl.resoutce;

public class Test {
    public static void main(String[] args) {
        try {
            int a = 10 / 0;
        } catch (ArithmeticException e) {
            e.printStackTrace();
        }finally {
            System.out.println("finally block");
            //哪怕try块中有return语句，finally块也会执行
        }

    }
}
